-- SPDX-License-Identifier: GPL-3.0-or-later

local prefix = "packages.lingling.pkg."

local gu = require(prefix .. "ling_0_gu")
local shang = require(prefix .. "ling_2_shang")
local zhou = require(prefix .. "ling_3_zhou")
local zhanguo = require(prefix .. "ling_4_zhanguo")
local qin = require(prefix .. "ling_5_qin")
local chu = require(prefix .. "ling_6_chu")
local han = require(prefix .. "ling_7_han")
local sanguo = require(prefix .. "ling_8_sanguo")
local jin = require(prefix .. "ling_9_jin")
local nanbeichao = require(prefix .. "ling_10_nanbeichao")
local sui = require(prefix .. "ling_11_sui")
local suitang = require(prefix .. "ling_12_suitang")
local tang = require(prefix .. "ling_13_tang")
local anshi = require(prefix .. "ling_13_anshi")
local wudai = require(prefix .. "ling_14_wudai")
local liao = require(prefix .. "ling_15_liao")
local song = require(prefix .. "ling_16_song")
local yuan = require(prefix .. "ling_17_yuan")
local ming = require(prefix .. "ling_18_ming")
local qing = require(prefix .. "ling_19_qing")
local insurrect = require(prefix .. "ling_20_insurrect")
local misc = require(prefix .. "ling_21_misc")
local friends = require(prefix .. "ling_x_friends")

local cards = require(prefix .. "cards")

-- 为本扩展包所有武将填写默认设计者
for _, pack in ipairs({gu, shang, zhou, zhanguo, qin, chu, han, sanguo, jin, nanbeichao, sui, suitang, tang, anshi, wudai, liao, song, yuan, ming, qing, insurrect, misc, friends}) do
  for _, g in ipairs(pack.generals) do
    if not Fk.translations["zh_CN"]["#"..g.name] then
      Fk.translations["zh_CN"]["#"..g.name] = ""
    end
    if not Fk.translations["zh_CN"]["designer:"..g.name] then
      Fk.translations["zh_CN"]["designer:"..g.name] = "伶"
    end
  end
end

Fk:appendKingdomMap("god", { "gu", "shang", "zhou", "qi", "chu", "qin", "yan", "zhao", "ghan" })
Fk:appendKingdomMap("god", { "han", "xin", "jin", "liang", "sui", "tang", "liao", "song", "gin", "yuan", "ming", "qing" })

Fk:loadTranslationTable {
  ["lingling"] = "伶伶全史",

  ["gu"] = "古",
  ["shang"] = "商",
  ["zhou"] = "周",
  ["qi"] = "齐",
  ["chu"] = "楚",
  ["yan"] = "燕",
  ["zhao"] = "赵",
  ["ghan"] = "韩",
  ["han"] = "汉",
  ["xin"] = "新",
  ["liang"] = "梁",
  ["sui"] = "隋",
  ["tang"] = "唐",
  ["liao"] = "辽",
  ["song"] = "宋",
  ["gin"] = "金",
  ["yuan"] = "元",
  ["ming"] = "明",
  ["qing"] = "清",

  ["ling_gu"] = "上古洪荒",
  ["ling_shang"] = "天命玄鸟",
  ["ling_zhou"] = "凤鸣岐山",
  ["ling_zhanguo"] = "鬼谷残局",
  ["ling_qin"] = "六国同轨",
  ["ling_chu"] = "死亦鬼雄",
  ["ling_han"] = "大风起兮",
  ["ling_sanguo"] = "浪花淘尽",
  ["ling_jin"] = "神州陆沉",
  ["ling_nanbeichao"] = "北雁南归",
  ["ling_sui"] = "开皇大业",
  ["ling_suitang"] = "瓦岗风云",
  ["ling_tang"] = "万国衣冠",
  ["ling_anshi"] = "渔阳鼙鼓",
  ["ling_wudai"] = "故国回首",
  ["ling_liao"] = "玉京塞乐",
  ["ling_song"] = "汴梁河上",
  ["ling_yuan"] = "呼哨铁踏",
  ["ling_ming"] = "日月重光",
  ["ling_qing"] = "秋叶海棠",
  ["ling_insurrect"] = "天街踏骨",
  ["ling_misc"] = "圣贤皆寂",
  ["lingling_friends"] = "形象",

  ["ling_cards"] = "伶伶全史",
}

return {
  gu,
  shang,
  zhou,
  zhanguo,
  qin,
  chu,
  han,
  sanguo,
  jin,
  nanbeichao,
  sui,
  suitang,
  tang,
  anshi,
  wudai,
  liao,
  song,
  yuan,
  ming,
  qing,
  insurrect,
  misc,
  friends,

  cards,
}
